import { Type } from "class-transformer";
import { IsString, IsNotEmpty, IsEmail, MaxLength, MinLength } from "class-validator";
import { IsPasswordStrong } from "src/utils/request/validation/request.is-password-strong.validation";

export class AuthSignUpDto {
  @IsEmail()
  @IsNotEmpty()
  @MaxLength(100)
  @Type(() => String)
  readonly email: string;

  @IsString()
  @IsNotEmpty()
  @MinLength(1)
  @MaxLength(30)
  @Type(() => String)
  readonly name: string;

  @IsString()
  @IsNotEmpty()
  @MinLength(10)
  @MaxLength(11)
  @Type(() => String)
  readonly phone: string;

  @IsNotEmpty()
  // @IsPasswordStrong()
  readonly password: string;
}
